package com.uenpay.oem.util.bankcard;

/**
 * Created by DELL on 2017/6/27.
 */

public class BankCardUtils {
    public static final int REMAIN = 4;
    /**
     * 截取尾数
     * @param cardNum 被截取的原字符串
     * @param i 要保留的位数
     * @return
     */
    public static String getSubBankNum(String cardNum, int i) {
        return cardNum.substring(cardNum.length()- i);
    }
}
